package com.ma.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ma.gulimall.product.entity.SpuInfoEntity;
import com.ma.gulimall.product.vo.SpuSaveVo;
import com.ma.gulimall.utils.PageUtils;

import java.util.Map;

/**
 * spu信息
 *
 * @author mayongqiang
 * @email 178780494@qq.com
 * @date 2021-06-13 23:17:48
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVo spuInfo);

    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);

    void up(Long spuId);

    /**
     * 根据skuId查询spu信息
     *
     * @param skuId
     * @return
     */
    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

